﻿<%@ Page Language="C#" MasterPageFile="~/System/BidProject.master" AutoEventWireup="true" CodeFile="Acceptbidder.aspx.cs" Inherits="Bidder_Acceptbidder" Title="无标题页" %>
<%@ Register Src="../System/DbPageFlip.ascx" TagName="DbPageFlip" TagPrefix="uc1" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <script language="javascript" type="text/javascript">
         function SelectAll()
        {
            var i;
             var a = document.getElementsByName('chk');
             for( i = 0;i < a.length;i++)
            {
                a[i].checked = true; 
            }           
        }
        function ClearAll()
        {
            var i;
             var a = document.getElementsByName('chk');
             
             for( i = 0;i < a.length;i++)
            {
                a[i].checked = false; 
            }           
        }
        
        function CheckOthers()
        {
            var i;
            var a = document.getElementsByName('chk');
             
             for( i = 0;i < a.length;i++)
            {
            
                if(a[i].checked!=true)
                {
                    a[i].checked =true ; 
                }
                else
                {   
                    a[i].checked = false; 
                }
            }           
            
        }
    </script>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td style="width: 4px">
                <img src="../images/intro_left.gif" width="4" height="34"></td>
            <td class="intro_wordbg">
                投标人确认</td>
            <td background="../images/intro_bg.gif">
                <img src="../images/intro_right.jpg" width="118" height="34"></td>
        </tr>
    </table>
    <table id="tabData" width="98%" border="1" align="center" cellpadding="2" cellspacing="1">
             
        <tr>
         <td >       
         <asp:Label ID="txtProductName" runat="server" 
                 Text="注意事项:已确认的商品请不要重复执行[投标人确认]." Width="723px" ForeColor="blue"></asp:Label></td>   
        </tr>
        <tr>
        <td  align="right"><input id="but1" type="button" class="button_bg6" value="全选" onclick="javascript:SelectAll();" />&nbsp;&nbsp;<input id="but2" type="button" class="button_bg6" value="清空" onclick="javascript:ClearAll();" />&nbsp;&nbsp;<input id="but3" type="button" class="button_bg6" value="反选" onclick="javascript:CheckOthers();" />&nbsp;&nbsp;
            <asp:Button ID="Button1" runat="server"  class="button_bg6" Width="90px" Text="投标人确认"  OnClientClick="javascript:return confirm('接受投标授权将把您选择的流水的商品设置为投标商品,是否确认接受投标授权吗？')" onclick="Button1_Click" />&nbsp;&nbsp;
           <asp:Button ID="Button2" runat="server"  class="button_bg6" Width="90px" 
                Text="撤销投标确认"  
                OnClientClick="javascript:return confirm('撤销投标确认将会清除相应的投标商品,您将不能为这些商品投标,是否真的要撤销？')" 
                onclick="Button2_Click" Visible="False" />&nbsp;&nbsp;
         <%-- <asp:CheckBox ID="CheckBox2" runat="server" AutoPostBack="True" Font-Size="9pt" OnCheckedChanged="CheckBox2_CheckedChanged"
                        Text="全选" />--%></td> </tr>
        <tr><td>
        <asp:GridView ID="GridView1" runat="server" Width="98%"  AutoGenerateColumns="False"
        CssClass='table_table' HeaderStyle-CssClass='table_title' 
         >
        <Columns>            
              <asp:BoundField DataField="goodsid" HeaderText="商品流水号" />      
              
              <asp:BoundField DataField="Productname" HeaderText="通用名" />
             <asp:BoundField DataField="Medicinemodel" HeaderText="剂型" />
             <asp:BoundField DataField="Outlookc" HeaderText="规格" />
             <asp:BoundField DataField="Unit" HeaderText="单位" />
             <asp:BoundField DataField="xishu" HeaderText="转换系数" />
             <asp:BoundField DataField="usercode_SC" HeaderText="企业用户名" />  
              <asp:BoundField DataField="username_SC" HeaderText="生产企业" /> 
               <asp:BoundField DataField="status" HeaderText="状态" />   
               <asp:BoundField DataField="Accept_time" HeaderText="操作日期" />    
            
             <asp:TemplateField >
                 <ItemTemplate>
                <input name='chk' type='checkbox'   value='<%#DataBinder.Eval(Container.DataItem, "goodsid")%>@<%#DataBinder.Eval(Container.DataItem, "status")%>' />
                 </ItemTemplate>                
             </asp:TemplateField>
        </Columns>
        <RowStyle CssClass="table_td" />
        <SelectedRowStyle CssClass="table_td" />
        <FooterStyle CssClass="table_td" />
        <HeaderStyle CssClass="table_title" />     
  </asp:GridView></td>
          
        </tr>
    </table>

    <div align="right">
        <table border="0">
            <tr>
                <td style="height: 12px">
                    <input type="submit" name="butSelectAll" value="查看全部" class="button_bg6" style="width: 74px"
                        onclick="javascript:return CheckForm();" disabled="disabled" />
                </td>
                <td style="height: 12px">
                    <uc1:dbpageflip ID="DbPageFlip1" runat="server" />
                </td>
            </tr>
        </table>
    </div>
  
</asp:Content>

